home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0399 / 164 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.0 KB

  1. Date: Mon, 22 Mar 93 21:06:06 -0800
  2. From: ersmith@netcom.com (Eric R. Smith)
  3. Message-Id: <9303230506.AA22931@netcom4.netcom.com>
  4. To: hohmuth@freia.inf.tu-dresden.de, mint@terminator.rs.itd.umich.edu
  5. Subject: Re: seduid scripts
  6.  
  7. >> I have no particular objection to putting #! interpretation in, but
  8. >> it would have to be "#!\bin\sh" rather than "#!/bin/sh".
  9.  
  10. >Eric, have you any idea how setuid scripts could be achieved, then?
  11.  
  12. How about a (setuid root) program that acts as a setuid server; i.e.
  13. whenever exec detects a #! as the first two characters of a file,
  14. it instead execs /bin/scripter (or whatever we want to call it) with
  15. the script file name as the first argument and the other parameters
  16. (if any) following it. /bin/scripter then checks the uid, gid, and
  17. permission bits, does appropriate setuid() and setgid() calls, and
  18. executes the interpreter (after performing any /->\ translations
  19. that are necessary).
  20.  
  21. Obviously if the script is *not* setuid or setgid then exec can
  22. bypass /bin/scripter and just do the script directly.
  23.  
  24.  
  25.